package com.overlook.somniferous.common.Enum;

import lombok.Getter;

@Getter
public enum CommonErrorEnum implements IResponseEnum{
    OK("20000","正常"),
    UNKNOWN_ERROR("20001", "未知错误"),
    NONE_PARAM("20002","无参数"),
    ID_NOT_EXIST("20003","id不存在"),
    NAME_IS_EMPTY("20004","名称不存在"),
    EMAIL_IS_EMPTY("20005","邮箱不存在"),
    PASSWORD_IS_EMPTY("20006","密码不存在"),
    PHONE_IS_EMPTY("20007","手机号码不存在"),
    USER_EXIST("20008","用户已存在"),
    USER_Forbidden("20009","账号已被封禁"),
    PHONE_EXIST("20010","手机号已被占用"),
    NAME_EXIST("20011","名称已被占用"),
    EMAIL_EXIST("20012","邮箱已被占用"),
    PARAM_ERROR("20013","参数异常")
    ;
    private String code;
    private String message;

    CommonErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
